package com.itheima.mall.service.Impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mall.mapper.PrefrenceAreaMapper;
import com.itheima.mall.pojo.PrefrenceArea;
import com.itheima.mall.service.CmsPrefrenceAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmsPrefrenceAreaServiceImpl  implements CmsPrefrenceAreaService {

    @Autowired
    private PrefrenceAreaMapper prefrenceAreaMapper;
    //listAllPrefrenceArea
    @Override
    public List<PrefrenceArea> listAllPrefrenceArea() {
        LambdaQueryWrapper<PrefrenceArea> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        List<PrefrenceArea> list = prefrenceAreaMapper.selectList(lambdaQueryWrapper);
        return list;
    }
}
